package com.baomidou.springwind.pojo;

import com.baomidou.springwind.entity.CityOrder;
import com.baomidou.springwind.entity.NetworkDelivery;
import com.baomidou.springwind.entity.NetworkNode;
import com.baomidou.springwind.utils.CityUtil;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 驾驶距离
 * </p>
 *
 * @Author demo
 * @Date 2017-7-3
 */
public class CityDrivingRoute implements Serializable {
    public final CityOrder node1;
    public final double distance1;
    public final CityOrder node2;
    public final double distance2;
    public final CityOrder node3;


    public CityDrivingRoute(CityOrder node1, double distance1, CityOrder node2, double distance2,CityOrder node3) {
        this.node1 = node1;
        this.distance1 = distance1;
        this.node2 = node2;
        this.distance2 = distance2;
        this.node3 = node3;
    }

    @Override
    public String toString() {
        return "DrivingRoute{" +
                "node1=" + node1 +
                ", distance1=" + distance1 +
                ", node2=" + node2 +
                ", distance2=" + distance2 +
                ", node3=" + node3 +
                '}';
    }
}
